﻿namespace SlamCms.Web
{
	using System.Web.Security;

	public interface IFormsAuthentication
	{
		string FormsCookieName { get; }
		string FormsCookiePath { get; }
		string CookieDomain { get; }
		string LoginUrl { get; }
		string Encrypt(FormsAuthenticationTicket ticket);
		FormsAuthenticationTicket Decrypt(string encryptedTicket);
		void SignOut();
		void RedirectToLoginPage();
		void RedirectToLoginPage(string extraQueryString);
		void SetAuthCookie(string userName, bool createPersistentCookie);
	}
}